#pragma once

#include "hazard.h"
#include "IListener.h"

class Emitter;

class BoomBarrel : public Hazard, public IListener
{
public:
	BoomBarrel(void);
	~BoomBarrel(void);

	// Draw
	virtual void Render(void);

	// Update
	virtual void Update(float elapasedTime);

	// Collision Response
	virtual bool CheckCollision(IEntity* base);

	// For exploding
	virtual void HandleEvent(Event* thisEvent);

private:

	// Is it dead
	bool Destroyed;

	// Explosion Emitter
	static int Explosion;

	// Personal emitter
	Emitter* e;

	// How many barrels are on the map
	static unsigned int Count;
};

